package com.hhkj.api.withdrawal.model.req;

import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * ApiWithdrawalSaveReq
 *
 * @author HHKJ-SERVER-ZJ
 * @since 2023/11/16 8:47
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class ApiWithdrawalSaveReq extends ApiWithdrawalReq {

    /** 密码 */
    @NotBlank(message = "密码不能为空")
    private String password;

    @Override
    @NotNull(message = "账户id不能为空")
    public Long getAccountId() {
        return super.getAccountId();
    }

    @Override
    @NotNull(message = "金额不能为空")
    public BigDecimal getPrice() {
        return super.getPrice();
    }
}
